feat(kernel): kernel-foundation — slug/types/mutex 基础 - #117
Merged
Conversation
TDD self-report (mutex): - RED: test/kernel/mutex.test.ts — 同 key 串行/异 key 并行/结果返回/异常传播/数字 key - GREEN: src/kernel/mutex.ts + src/plugin/broker.ts 复用提取后的 KeyedMutex(删除本地副本,行为不变) - final-regression: 499 passed(468 既有 + 31 新增) - final-verification: mutex 互斥可用 ✓;broker 既有 26 测试保持绿色 ✓ kernel/types.ts 定义 FlowRecordRef / TaskRecordRef(Flow/Task Record 引用基础结构)。
TDD self-report (slug): - RED: test/kernel/slug.test.ts(26 用例)— module missing 失败 - GREEN: src/kernel/slug.ts — validateTitle/deriveSlug/branchFor/worktreeFor - final-regression: 499 passed(468 既有 + 31 新增),typecheck 通过 - final-verification: * 泛化名拒绝:task-001/feature-1/implement-task/fix-bug/add-docs/task/123 → GENERIC_TITLE;Task 001 → INVALID_FORMAT ✓ * 合法功能 slug 接受:validate-execution-binding → ok ✓ * 非法格式拒绝:大写/下划线/空格/连续连字符/首尾连字符/超长 ✓ * deriveSlug 严格派生:无 doc 兜底(无意义输入返回空串)、截断至 60 ✓
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
kernel-foundation
src/kernel/slug.ts— Functional Slug 派生与校验(拒绝泛化名/非法格式)src/kernel/types.ts— 内核基础类型src/kernel/mutex.ts— KeyedMutex(从 broker.ts 提取复用)TDD self-report: slug + mutex 各一轮 RED→GREEN,final-regression 499 通过,typecheck 通过。
Closes #99